/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.brain.entity;

import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotNull;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 排位字典Entity
 * @author 程展峰
 * @version 2021-09-18
 */
public class BRankDic extends DataEntity<BRankDic> {
	
	private static final long serialVersionUID = 1L;
	private String rankName;		// 段位名称
	private Long rankSort;		// 段位排序
	private Integer rankStar;		// 段位星级
	private String rankFlag;		// 段位标志
	private String tenantId;		// 租户ID
	
	public BRankDic() {
		super();
	}

	public BRankDic(String id){
		super(id);
	}

	@Length(min=0, max=255, message="段位名称长度必须介于 0 和 255 之间")
	public String getRankName() {
		return rankName;
	}

	public void setRankName(String rankName) {
		this.rankName = rankName;
	}
	
	@NotNull(message="段位排序不能为空")
	public Long getRankSort() {
		return rankSort;
	}

	public void setRankSort(Long rankSort) {
		this.rankSort = rankSort;
	}
	
	public Integer getRankStar() {
		return rankStar;
	}

	public void setRankStar(Integer rankStar) {
		this.rankStar = rankStar;
	}
	
	@Length(min=0, max=255, message="段位标志长度必须介于 0 和 255 之间")
	public String getRankFlag() {
		return rankFlag;
	}

	public void setRankFlag(String rankFlag) {
		this.rankFlag = rankFlag;
	}
	
	@Length(min=1, max=64, message="租户ID长度必须介于 1 和 64 之间")
	public String getTenantId() {
		return tenantId;
	}

	public void setTenantId(String tenantId) {
		this.tenantId = tenantId;
	}
	
}